fix(xcode_build): prevent configuration from overriding scheme defaults#21
Open
Ghun2 wants to merge 1 commit intoconorluddy:mainfrom
Open
fix(xcode_build): prevent configuration from overriding scheme defaults#21Ghun2 wants to merge 1 commit intoconorluddy:mainfrom
Ghun2 wants to merge 1 commit intoconorluddy:mainfrom
Conversation
Problem: - xcode_build always passed `-configuration Debug` even when using custom schemes like Debug-Dev or Release-Prod - This overrode the scheme's default build configuration Solution: - Remove enum restriction ["Debug", "Release"] to allow custom configs - Only add -configuration flag when explicitly provided - Let xcodebuild use scheme's default configuration when omitted Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
When using
xcode_buildwith a custom scheme (e.g.,Debug-Dev), the tool always passes-configuration Debugto xcodebuild, overriding the scheme's default configuration.Example
This causes the scheme's build settings to be ignored, as the explicit
-configuration Debugtakes precedence.Solution
Debug-Dev,Release-Prod-configurationflag when explicitly providedBefore
After
Testing
Tested with Xcode project using custom schemes:
Debug-Devscheme now correctly uses its associated build configurationRelease-Prodscheme works as expectedChecklist
🤖 Generated with Claude Code